package com.prs.crm.domain.cdxh;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2010-12-9 上午09:56:54 简单说明
 */
@Entity
@Table(name = "cdxh_DistributionOrderDetail")
public class DistributionOrderDetail extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	@ManyToOne
	private DistributionOrder distributionOrder;

	/**
	 * 销售订单或者计划单编号
	 */
	private String saleOrderPlan;

	/**
	 * 产品编号
	 */
	private String productCode;
	/**
	 * 产品名称
	 */
	private String productName;

	/**
	 * 规格
	 */
	private String productNorm;
	/**
	 * 颜色
	 */
	private String productColor;
	/**
	 * 包装方式
	 */
	private String productPackWay;
	/**
	 * 数量
	 */
	@Column(columnDefinition = "Integer(11) default '0'")
	private int disNum;
	/**
	 * 生产过来的数量
	 */
	@Column(columnDefinition = "Integer(11) default '0'")
	private int proToNums;
	/**
	 * 已配送数量
	 */
	@Column(columnDefinition = "Integer(11) default '0'")
	private int disNums;
	/**
	 * 平方
	 */

	private Double disSquare;

	/**
	 * 单价
	 */
	@Column(columnDefinition = "Double(11,4) default '0.0000'")
	private Double disPrice;
	/**
	 * 小计
	 */
	@Column(columnDefinition = "Double(11,3) default '0.000'")
	private Double disTotal;
	
	private String  psCodesN;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public DistributionOrder getDistributionOrder() {
		return distributionOrder;
	}

	public void setDistributionOrder(DistributionOrder distributionOrder) {
		this.distributionOrder = distributionOrder;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getProductNorm() {
		return productNorm;
	}

	public void setProductNorm(String productNorm) {
		this.productNorm = productNorm;
	}

	public String getProductColor() {
		return productColor;
	}

	public void setProductColor(String productColor) {
		this.productColor = productColor;
	}

	public String getProductPackWay() {
		return productPackWay;
	}

	public void setProductPackWay(String productPackWay) {
		this.productPackWay = productPackWay;
	}

	public int getDisNum() {
		return disNum;
	}

	public void setDisNum(int disNum) {
		this.disNum = disNum;
	}

	public int getDisNums() {
		return disNums;
	}

	public void setDisNums(int disNums) {
		this.disNums = disNums;
	}

	public Double getDisSquare() {
		return disSquare;
	}

	public void setDisSquare(Double disSquare) {
		this.disSquare = disSquare;
	}

	public Double getDisPrice() {
		return disPrice;
	}

	public void setDisPrice(Double disPrice) {
		this.disPrice = disPrice;
	}

	public Double getDisTotal() {
		return disTotal;
	}

	public void setDisTotal(Double disTotal) {
		this.disTotal = disTotal;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public int getProToNums() {
		return proToNums;
	}

	public void setProToNums(int proToNums) {
		this.proToNums = proToNums;
	}

	public String getSaleOrderPlan() {
		return saleOrderPlan;
	}

	public void setSaleOrderPlan(String saleOrderPlan) {
		this.saleOrderPlan = saleOrderPlan;
	}

	public String getPsCodesN() {
		return psCodesN;
	}

	public void setPsCodesN(String psCodesN) {
		this.psCodesN = psCodesN;
	}

}
